Online documentation - WebsydianExpress v3.5 |
WSYEXTJS/ExtWebDeletePage
This is an abstract PageGenerator that can be used if you want to have a delete page outside a WebEditSuite. This page is designed for use in the Ext JS for WebsydianExpress framework.
The PageGenerator includes two EventHandlers: Delete and Cancel. The Delete EventHandler calls the DeleteRow function, which physically deletes the record.
You must start by creating a function that inherits from ExtWebDeletePage:
Source Object | Verb | Target Object |
---|---|---|
MyDeletePage | is a FNC | WSYEXTJS/ExtWebDeletePage |
Then you must specify the entity to delete records for by replacing the UIBasic.Update view with your own Update view - and the UiBasic.Detail view with your Fetch view
Source Object | Verb | Target Object |
---|---|---|
MyDeletePage | replaces VW
...by VW |
UIBASIC/UiBasic.Update
MyEntity.Update |
MyDeletePage | replaces VW
...by VW |
UIBASIC/UiBasic.Detail
MyEntity.Fetch |
Finally, you must enter calls to a PageGenerator in the Delete and Cancel EventHandler.
In many cases, you will get the delete page as part of a WebEditSuite - either by inheriting from ExtWebEditDialog or from ExtWebEditSuite.